body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}

header h1 {
    margin: 0;
    text-align: left;
    padding-left: 10px;
}

nav {
    background-color: red;
    display: flex;
    justify-content: center;
    padding: 5px 0; /* 上下内边距 */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 44px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    margin: 20px;
}

.article-list article {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.article-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 850px;
}

.article-list {
    /* 基本的样式，比如边距或内边距 */
    padding: 20px;
}

.article-item {
    display: flex;
    flex-direction: column; /* 垂直布局 */
    justify-content: flex-start; /* 垂直对齐方式，这里使用顶部对齐 */
    margin-bottom: 20px; /* 每篇文章之间的间距 */
    position: relative; /* 为了绝对定位发布时间 */
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.article-image {
    margin-bottom: 20px; /* 图片和标题之间的间距 */
    width: 100px; /* 设置图片的宽度 */
    height: auto; /* 保持图片的纵横比 */
}
.article-media {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.article-title {
    /* 标题的样式 */
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

.article-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    color: #999;
}

header nav {
    margin-left: auto;
    margin-right: auto;
    max-width: 850px;
}

footer a {
    color: inherit;
    text-decoration: none;
}

header img {
    width: 7%;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}
